package com.aruba.databinding;

/**
 * Created by aruba on 2021/9/11.
 */
public class StarUtils {
    public static String getStar(int star) {
        String starStr = null;
        switch (star) {
            case 1:
                starStr = "一星";
                break;
            case 2:
                starStr = "二星";
                break;
            case 3:
                starStr = "三星";
                break;
            case 4:
                starStr = "四星";
                break;
            case 5:
                starStr = "五星";
                break;
        }

        return starStr;
    }
}
